package com.jfunit.java.bean;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.regex.Matcher;

/**
 * 封装Action信息
 * 
 * @author Administrator
 *
 */
public class Handler {

    // Controller类
    private Class<?> controllerClass;

    // Action方法
    private Method actionMethod;

    private Matcher requestPathMatcher;

    // Action方法中参数名称
    private Map<Integer, Object> PathVariableParam;

    public Handler(Class<?> controllerClass, Method actionMethod) {
        super();
        this.controllerClass = controllerClass;
        this.actionMethod = actionMethod;
    }

    public Class<?> getControllerClass() {
        return controllerClass;
    }

    public Method getActionMethod() {
        return actionMethod;
    }

    public Matcher getRequestPathMatcher() {
        return requestPathMatcher;
    }

    public void setRequestPathMatcher(Matcher requestPathMatcher) {
        this.requestPathMatcher = requestPathMatcher;
    }

    public Map<Integer, Object> getPathVariableParam() {
        return this.PathVariableParam;
    }

    public void setPathVariableParam(Map<Integer, Object> pathVariableParam) {
        this.PathVariableParam = pathVariableParam;
    }

    
}
